home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d09xx
/
d0908.lha
/
MegaView
/
Install MegaView
< prev
next >
Wrap
Text File
|
1993-08-28
|
3KB
|
130 lines
(if (> @user-level 0) ; print a little welcome
(message "This utility installs MegaView onto your harddisk.\n"
"Since you are an advanced user, you will "
"be asked a place to copy the MegaView Program to.\n"
"The sample FileActions file will be installed into your"
" S: directory\n"
"You will also get the chance to choose where the doc file "
"should go to.\n")
)
(set @default-dest
(askdir (prompt "Select a directory to copy MegaView to")
(help @askdir-help)
(default "SYS:Utilities/")
(newpath)
)
)
(if (= @pretend 0)
(copyfiles
(source "MegaView")
(dest @default-dest)
(infos)
)
)
(set samedir
(askchoice
(prompt "What shall I do next?")
(help @askchoice-help)
(choices "Install Doc File in same directory"
"Install Doc File in other directory"
"Don't install the doc file")
(default 0)
)
)
(select samedir
(set pdir @default-dest)
(set pdir
(askdir (prompt "Select a directory to copy the docfile to")
(help @askdir-help)
(default @default-dest)
(newpath)
)
)
(set pdir "NIL:")
)
(if (<> pdir "NIL:")
(if (= @pretend 0)
(copyfiles
(source "MegaView.guide")
(dest pdir)
(infos)
)
)
)
(if (= @pretend 0)
(copyfiles
(source "FileActions")
(dest "S:")
)
)
(set vernum (getversion "libs:whatis.library"))
(set thisver (getversion "libs/whatis.library"))
(set yn 0)
(if (< vernum thisver)
(set yn
(askbool
(prompt "You have an old version of whatis.library or none at all. You will need whatis.library 3.5. Do you want to install the new version?")
(help @askbool-help)
(default 1)
)
)
)
(if (= yn 1)
(if (= @pretend 0)
(copyfiles
(source "libs/whatis.library")
(dest "libs:whatis.library")
)
)
)
(set yn 0)
(set there (exists "S:FileTypes" (noreq)))
(if (= there 0)
(set yn
(askbool
(prompt "Whatis.library needs the file S:FileTypes. You have none installed. Do you want to install the sample version?")
(help @askbool-help)
(default 1)
)
)
)
(if (= yn 1)
(copyfiles
(source "FileTypes")
(dest "S:FileTypes")
)
)
(set yn
(askbool
(prompt "Do you want to install the whatis.library doc file")
(help @askbool-help)
(default 1)
)
)
(if (= yn 1)
((set pdir
(askdir (prompt "Select a directory to copy the docfile to")
(help @askdir-help)
(default @default-dest)
(newpath)
)
)
(copyfiles
(source "Whatislibrary.doc")
(dest pdir)
))
)